package cn.com.vrv.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.com.vrv.common.AbstractController;
import cn.com.vrv.entity.RecognitionResult;
import cn.com.vrv.service.RecognitionResultService;

/**
 * 结果控制器
 * 
 * @author 赵炎
 * @version [V1.00, 2017年11月21日]
 * @see [相关类/方法]
 * @since V1.00
 */
@Controller
@RequestMapping("result")
public class ResultController extends AbstractController
{
	@Autowired
    private RecognitionResultService recognitionResultService;
	
	@RequestMapping("list")
	public String list(Model model ,RecognitionResult recognitionResult)
	{
		List<RecognitionResult> results=recognitionResultService.findAll();
		model.addAttribute("results", results);
		return "recognition/resultList";
	}
}
